package com.ywq.app.dao.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import com.ywq.app.dao.ArtOrdersDao;
import com.ywq.app.domain.ArtOrders;
import com.ywq.common.exception.AppBusinessException;


public class ArtOrdersDaoImpl extends SqlSessionDaoSupport implements ArtOrdersDao{
	
	private static final Logger logger = LoggerFactory.getLogger(ArtOrdersDaoImpl.class);
	
	@Override
	public void insertArtOrders(ArtOrders artOrders) throws AppBusinessException {
		try {
			getSqlSession()
					.insert("com.ywq.app.persistence.ArtOrdersMapper.insertArtOrders",
							artOrders);
		} catch (Exception e) {
			if (logger.isErrorEnabled()) {
				logger.error("insertArtOrders user failure.", e);
			}
			throw new AppBusinessException("insertArtOrders user failure.", e);
		}
	}
	
}
